﻿using BJoin.Application.BObject;
using System.ComponentModel.DataAnnotations.Schema;

namespace BJoin.Application.Dto
{
    public class ReqFilterDto<TKey>
    {
        /// <summary>
        /// ID数组
        /// </summary>
        public TKey[] Id { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [NotMapped]
        public virtual string[] OrderBy { get; set; } = null;
    }
    public class ReqFilterDto<TKey,TExt>: BObjExt<TExt> where TExt:BObjExt
    {
        /// <summary>
        /// ID数组
        /// </summary>
        public TKey[] Id { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [NotMapped]
        public virtual string[] OrderBy { get; set; } = null;
        /// <summary>
        /// 当前页
        /// </summary>
        [NotMapped]
        public virtual int? PageIndex { get; set; } = null;
        /// <summary>
        /// 每页条数
        /// </summary>
        [NotMapped]
        public virtual int? PageSize { get; set; } = null;

    }
}
